using Tszy.Unlimited.Base.BackgroundTasks;
using Tszy.Unlimited.Data.FreeSQL;
using Tszy.Workers.Workers;

IHost host = Host.CreateDefaultBuilder(args)
    .ConfigureServices(services =>
    {
        //services.RegisterTszyComponent();
        services.RegisterFreeSQLDotMySQL("server=localhost;port=3306;uid=root;pwd=111111;database=test;charset=utf8;SslMode=None");
        services.RegisterBackgroundTask<TestWorker1>();
        services.RegisterBackgroundTask<TestWorker2>();
    })
    .Build();

await host.RunAsync();